package com.mukefile.utils;

import java.util.List;
/**
 * @Author: kenewstar
 * @Description: 分页信息
 * @Date:Created in 2020/9/13
 */
public class PageInfo<T>{
    /**
     * 当前页
     */
    private Integer currentPage ;
    /**
     * 总页数(最后一页)
     */
    private Integer totalPages;
    /**
     * 记录总数
     */
    private Integer totalRecords;
    /**
     * 存放查询后的数据
     */
    private List<T> data;

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public Integer getTotalRecords() {
        return totalRecords;
    }

    public void setTotalRecords(Integer totalRecords) {
        this.totalRecords = totalRecords;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
